module.exports = function(router, startModule) {

  // function asyncRequire(path) {
  //   return function(resolve) {
  //     // console.log(resolve)
  //     require([path], resolve);
  //   }
  // }

  router.map({
    '/': {
      component: startModule
    },
    '/b': {
      component: (resolve) => require(['com.yy.bb/index.vue'], resolve)
    }
  });
}